package com.xingda.packing.plc.entity;

import lombok.Data;

@Data
public class PlcItemVal {

    /**
     * @param name       名称
     * @param fieldQuery 查询字段
     * @param values     写入值
     */
    public PlcItemVal(String name, String fieldQuery, Object... values) {
        super();
        this.name = name;
        this.fieldQuery = fieldQuery;
        this.values = values;
    }

    public PlcItemVal(PlcItem plcItem, Object... values) {
        super();
        this.name = plcItem.getName();
        this.fieldQuery = plcItem.getFieldQuery();
        this.values = values;
    }

    /**
     * 名称
     */
    private String name;
    /**
     * 查询字段
     */
    private String fieldQuery;
    /**
     * 写入值
     */
    private Object[] values;

}
